//
//  HomeViewController.h
//  DreamRoomage
//
//  Created by wjy on 15/9/7.
//  Copyright (c) 2015年 wjy. All rights reserved.
//

#import "UILabel+init.h"

@implementation UILabel (init)

+ (instancetype)labelWithFrame:(CGRect)frame text:(NSString *)text backGroundColor:(UIColor *)bgColor textColor:(UIColor *)tColor alignment:(NSTextAlignment)alignment
{
    UILabel *l = [[UILabel alloc] initWithFrame:frame];
    l.text = text;
    if (bgColor) {
        l.backgroundColor = bgColor;
    }
    if (tColor) {
        l.textColor = tColor;
    }
    l.textAlignment = alignment;
    return l;
}

















@end
